﻿@{
    ViewBag.Title = "Rule editor";
}

<div id="rule-editor-base">
    <div class="header">

        <div class="style-line">
            <label for="optStyleLine">Style Line</label>
            <select id="optStyleLine">
                <option>KEYLINE</option>
            </select>
        </div>
        <div class="skin">
            <label for="optSkin">Skin</label>
            <select id="optSkin">
                <option>Forest</option>
            </select>
        </div>
        <div class="version">
            <span>v1.12i</span>
        </div>
        <div class="clear"></div>
    </div>
    <div id="splitter">
        <div id="leftPanel">

            <div id="tabsLeft">
                <ul>
                    <li><a href="#tab-header">Header</a></li>
                    <li><a href="#tab-line-items">Line Items</a></li>
                    <li><a href="#tab-modifications">Modifications</a></li>
                    <li><a href="#tab-accessories">Accessories</a></li>
                    <li><a href="#tab-pricing-matrix">Pricing Matrix</a></li>
                    <li><a href="#tab-rule-test">Rule Test</a></li>
                    <li><a href="#tab-methods-valriables">Methods/Valriables</a></li>
                </ul>

                <div id="tab-header">
                    <div id="subtab-header">
                        <ul>
                            <li><a href="#subtab-header-data-model">Data Model</a></li>
                            <li><a href="#subtab-header-model-header">Header</a></li>
                        </ul>
                        <div id="subtab-header-data-model">
                        </div>
                        <div id="subtab-header-model-header">

                            <button id="btnRefreshHeader">Refresh</button>
                            <div id="headerTree"  style="height: 350px;"></div>
                        </div>
                    </div>
                </div>

                <div id="tab-line-items"></div>
                <div id="tab-modifications"></div>
                <div id="tab-accessories"></div>
                <div id="tab-pricing-matrix"></div>
                <div id="tab-rule-test"></div>
                <div id="tab-methods-valriables"></div>

            </div>
        </div>

        <div id="rightPanel">
            <div id="tabRight">
                <ul>
                    <li><a href="#tab-list">List</a></li>
                    <li><a href="#tab-rules">Rule</a></li>
                    <li><a href="#tab-formula">Formula</a></li>
                    <li><a href="#tab-additional-question">Additional Questions</a></li>
                </ul>

                <div id="tab-list">
                    <div>
                        <label for="txtSearch">Search</label>
                        <input id="txtSearch" type="text" />
                        <button id="btnSerchList" disabled="disabled">Search</button>
                        <button id="btnSaveList">Save</button>
                        <button id="btnResetList">Reset</button>
                    </div>
                    <div>
                        <button disabled="disabled">Refresh</button>
                        <button disabled="disabled">Delete</button>
                        <button disabled="disabled">Edit</button>
                    </div>
                    <div id="listTree" style="height: 400px;"></div>
                </div>
                <div id="tab-rules"></div>
                <div id="tab-formula"></div>
                <div id="tab-additional-question"></div>
            </div>
        </div>
    </div>

</div>

@section scripts
{
    <script>
        $(function() {
            main.run();
        })
    </script>
}
